package com.blb.ioc;

import com.sun.org.apache.bcel.internal.util.ClassPath;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ComputerDemo02 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring01.xml");
        Computer computer = (Computer) context.getBean("computer");
        Computer computer1 = context.getBean(Computer.class);
        computer.start();
        computer1.start();
    }
}
